#!/usr/bin/env python
#coding=utf-8 

# 包装类

class WrapMe(object):
	def __init__(self, obj):
		self.__data = obj
	def get(self):
		return self.__data
	def __repr__(self):
		return 'self.__data'
	def __str__(self):
		return str(self.__data)
	def __getattr__(self, attr):
		return getattr(self.__data, attr) 
wrappedComplex = WrapMe(3.5 + 2.4j)
print wrappedComplex
print wrappedComplex.real
print wrappedComplex.imag
print wrappedComplex.get()